package com.exam.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created by 23115 on 2021/8/9 19:31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddExamByQuestionVo {
    @ExcelProperty(value = "考试名称", index = 0)
    private String examName;
    @ExcelProperty(value = "考试时间", index = 1)
    private Integer examDuration;
    @ExcelProperty(value = "开始时间", index = 2)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    @ExcelProperty(value = "结束时间", index = 3)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    @ExcelProperty(value = "总分", index = 4)
    private Integer totalScore;
    @ExcelProperty(value = "及格分", index = 5)
    private Integer passScore;
    private Integer status;
    @ExcelProperty(value = "问题", index = 6)
    private String questionIds;
    private Integer examId;
    @ExcelProperty(value = "问题分数", index = 8)
    private String scores;
    @ExcelProperty(value = "问题内容", index = 7)
    private String questions;
}
